projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de5bfaa
)
GtkMenuItem: fix leaked action_helper
author
Pavel Vasin
<rat4vier@gmail.com>
Wed, 19 Sep 2012 16:30:16 +0000
(20:30 +0400)
committer
Cosimo Cecchi
<cosimoc@gnome.org>
Thu, 20 Sep 2012 19:17:20 +0000
(15:17 -0400)
gtk/gtkmenuitem.c
patch
|
blob
|
history
diff --git
a/gtk/gtkmenuitem.c
b/gtk/gtkmenuitem.c
index 1cdb29a6a60f355c0fdbb00add72ce4efeb36876..d420bf1c19a56297f1d22cb8f78449eaafe714d6 100644
(file)
--- a/
gtk/gtkmenuitem.c
+++ b/
gtk/gtkmenuitem.c
@@
-604,6
+604,8
@@
gtk_menu_item_dispose (GObject *object)
GtkMenuItem *menu_item = GTK_MENU_ITEM (object);
GtkMenuItemPrivate *priv = menu_item->priv;
+ g_clear_object (&priv->action_helper);
+
if (priv->action)
{
gtk_action_disconnect_accelerator (priv->action);